[INFO] cloning repository https://github.com/xiamo0/leetcoderust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xiamo0/leetcoderust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiamo0%2Fleetcoderust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiamo0%2Fleetcoderust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c8ad5df8a4aeceacc19897d83396983f15965365
[INFO] checking xiamo0/leetcoderust against try#a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 for pr-145770
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiamo0%2Fleetcoderust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/xiamo0/leetcoderust
[INFO] finished tweaking git repo https://github.com/xiamo0/leetcoderust
[INFO] tweaked toml for git repo https://github.com/xiamo0/leetcoderust written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/xiamo0/leetcoderust on toolchain a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/xiamo0/leetcoderust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cce17e4fcb13d81cb1cc19097b0de527793e0b37478b58b594130d0634f5a197
[INFO] running `Command { std: "docker" "start" "-a" "cce17e4fcb13d81cb1cc19097b0de527793e0b37478b58b594130d0634f5a197", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cce17e4fcb13d81cb1cc19097b0de527793e0b37478b58b594130d0634f5a197", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cce17e4fcb13d81cb1cc19097b0de527793e0b37478b58b594130d0634f5a197", kill_on_drop: false }`
[INFO] [stdout] cce17e4fcb13d81cb1cc19097b0de527793e0b37478b58b594130d0634f5a197
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f459a3e3c1ef338f757a7f989becc60fb4e4e3a2e03a9aa3fbdf6e9e7aa41ab0
[INFO] running `Command { std: "docker" "start" "-a" "f459a3e3c1ef338f757a7f989becc60fb4e4e3a2e03a9aa3fbdf6e9e7aa41ab0", kill_on_drop: false }`
[INFO] [stderr]     Checking leetcoderust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/remove_nth_from_end.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 18 |     for i in 0..i1 {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i2`
[INFO] [stdout]   --> src/remove_nth_from_end.rs:19:13
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let i2 = option?.val;
[INFO] [stdout]    |             ^^ help: if this is intentional, prefix it with an underscore: `_i2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/remove_nth_from_end.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let mut newHead = Option::Some(Box::new(node));
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `option`
[INFO] [stdout]   --> src/remove_nth_from_end.rs:19:18
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let option = newHead;
[INFO] [stdout]    |         ------ move occurs because `option` has type `Option<Box<ListNode>>`, which does not implement the `Copy` trait
[INFO] [stdout] 17 |     let i1 = length - n as usize + 1;
[INFO] [stdout] 18 |     for i in 0..i1 {
[INFO] [stdout]    |     -------------- inside of this loop
[INFO] [stdout] 19 |         let i2 = option?.val;
[INFO] [stdout]    |                  ^^^^^^-
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  `option` moved due to this method call, in previous iteration of loop
[INFO] [stdout]    |
[INFO] [stdout] note: `branch` takes ownership of the receiver `self`, which moves `option`
[INFO] [stdout]   --> /rustc/a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399/library/core/src/ops/try_trait.rs:217:15
[INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let i2 = option.clone()?.val;
[INFO] [stdout]    |                        ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `newHead`
[INFO] [stdout]   --> src/remove_nth_from_end.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let mut newHead = Option::Some(Box::new(node));
[INFO] [stdout]    |         ----------- move occurs because `newHead` has type `Option<Box<ListNode>>`, which does not implement the `Copy` trait
[INFO] [stdout] 16 |     let option = newHead;
[INFO] [stdout]    |                  ------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 24 |     return newHead?.next;
[INFO] [stdout]    |            ^^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let option = newHead.clone();
[INFO] [stdout]    |                         ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/remove_nth_from_end.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 18 |     for i in 0..i1 {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i2`
[INFO] [stdout]   --> src/remove_nth_from_end.rs:19:13
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let i2 = option?.val;
[INFO] [stdout]    |             ^^ help: if this is intentional, prefix it with an underscore: `_i2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/remove_nth_from_end.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let mut newHead = Option::Some(Box::new(node));
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcoderust` (bin "leetcoderust" test) due to 2 previous errors; 3 warnings emitted
[INFO] [stdout] error[E0382]: use of moved value: `option`
[INFO] [stdout]   --> src/remove_nth_from_end.rs:19:18
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let option = newHead;
[INFO] [stdout]    |         ------ move occurs because `option` has type `Option<Box<ListNode>>`, which does not implement the `Copy` trait
[INFO] [stdout] 17 |     let i1 = length - n as usize + 1;
[INFO] [stdout] 18 |     for i in 0..i1 {
[INFO] [stdout]    |     -------------- inside of this loop
[INFO] [stdout] 19 |         let i2 = option?.val;
[INFO] [stdout]    |                  ^^^^^^-
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  `option` moved due to this method call, in previous iteration of loop
[INFO] [stdout]    |
[INFO] [stdout] note: `branch` takes ownership of the receiver `self`, which moves `option`
[INFO] [stdout]   --> /rustc/a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399/library/core/src/ops/try_trait.rs:217:15
[INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let i2 = option.clone()?.val;
[INFO] [stdout]    |                        ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0382]: use of moved value: `newHead`
[INFO] [stdout]   --> src/remove_nth_from_end.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let mut newHead = Option::Some(Box::new(node));
[INFO] [stdout]    |         ----------- move occurs because `newHead` has type `Option<Box<ListNode>>`, which does not implement the `Copy` trait
[INFO] [stdout] 16 |     let option = newHead;
[INFO] [stdout]    |                  ------- value moved here
[INFO] [stdout] ...
[INFO] [stdout] 24 |     return newHead?.next;
[INFO] [stdout]    |            ^^^^^^^ value used here after move
[INFO] [stdout]    |
[INFO] [stdout] help: consider cloning the value if the performance cost is acceptable
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let option = newHead.clone();
[INFO] [stdout]    |                         ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcoderust` (bin "leetcoderust") due to 2 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "f459a3e3c1ef338f757a7f989becc60fb4e4e3a2e03a9aa3fbdf6e9e7aa41ab0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f459a3e3c1ef338f757a7f989becc60fb4e4e3a2e03a9aa3fbdf6e9e7aa41ab0", kill_on_drop: false }`
[INFO] [stdout] f459a3e3c1ef338f757a7f989becc60fb4e4e3a2e03a9aa3fbdf6e9e7aa41ab0
